<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改个人信息页面</title>
<link rel="stylesheet" type="text/css" th:href="@{/jquery-easyui-1.3.3/themes/default/easyui.css}">
<link rel="stylesheet" type="text/css" th:href="@{/jquery-easyui-1.3.3/themes/icon.css}">
<script type="text/javascript" th:src="@{/static/jquery-easyui-1.3.3/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/static/jquery-easyui-1.3.3/jquery.easyui.min.js}"></script>
<script type="text/javascript" th:src="@{/static/jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js}"></script>

<script type="text/javascript" charset="gbk" th:src="@{/ueditor/ueditor.config.js}"></script>
<script type="text/javascript" charset="gbk" th:src="@{/ueditor/ueditor.all.min.js}"> </script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="gbk" th:src="@{/ueditor/lang/zh-cn/zh-cn.js}"></script>
<script type="text/javascript">
	
	function submitData(){
		var nickName=$("#nickName").val();
		var sign=$("#sign").val();
		var proFile=UE.getEditor('proFile').getContent();
		
		if(nickName==null || nickName==''){
			alert("请输入昵称！");
		}else if(sign==null || sign==''){
			alert("请输入个性签名！");
		}
		// else if(proFile==null || proFile==''){
		// 	alert("请输入个性简介！");
		// }
		else{
			// $("#pF").val(proFile);
			$('#form1').submit();
		}
	}
	
	
	
</script>
</head>
<body style="margin: 10px">
<div id="p" class="easyui-panel" title="修改个人信息" style="padding: 10px">
	<form id="form1" th:action="@{/consumer/blogger/save}" method="post" enctype="multipart/form-data">
	 	<table cellspacing="20px">
	   		<tr>
	   			<td width="80px">用户名：</td>
	   			<td>
	   				<input type="hidden" id="id" name="id" th:value="${session.loginBlogger.getId()}"/>
	   				<input type="text" id="userName" name="name" style="width: 200px;" th:value="${session.loginBlogger.getName()}" readonly="readonly"/>
	   			</td>
	   		</tr>
	   		<tr>
	   			<td>昵称：</td>
	   			<td><input type="text" id="nickName" name="nickName" th:value="${session.loginBlogger.getNickName()}" style="width: 200px;"/></td>
	   		</tr>
	   		<tr>
	   			<td>个性签名：</td>
	   			<td><input type="text" id="sign" name="sign" th:value="${session.loginBlogger.getSign()}" style="width: 400px;"/></td>
	   		</tr>>
			<tr>
				<td>个人头像：</td>
				<td><input type="file" id="imageFile" name="imageFile" style="width: 400px;"/></td>
			</tr>
			<tr>
				<td>邮箱：</td>
				<td><input type="text" id="email" name="email" th:value="${session.loginBlogger.getEmail()}" style="width: 400px;"/><span style="color: red;"></span></td>
			</tr>
			<tr>
				<td>电话号码：</td>
				<td><input type="phone" id="" name="phone" th:value="${session.loginBlogger.getPhone()}" style="width: 400px;"/><span style="color: red;"></span></td>
			</tr>
			<tr>
	   		<tr>
	   			<td></td>
	   			<td>
<!--   				<a href="javascript:submitData()" class="easyui-linkbutton" data-options="iconCls:'icon-submit'">提交</a>-->
					<button class="easyui-linkbutton" >提交</button>
	   			</td>
	   		</tr>
	   	</table>
   	</form>
 </div>


</body>
</html>